package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 家教教师对象 sys_teacher
 * 
 * @author ruoyi
 * @date 2025-04-21
 */
@Data
public class SysTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;


    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /** 教师名称 */
    @Excel(name = "教师名称")
    private String name;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 学科编号 */
    @Excel(name = "学科编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long subjectId;

    @TableField(exist = false)
    private String subjectName ;

    /** 申请材料 */
    @Excel(name = "申请材料")
    private String applicationFile;

    @TableField(exist = false)
    private BigDecimal teacherScore ;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setSubjectId(Long subjectId) 
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() 
    {
        return subjectId;
    }

    public void setApplicationFile(String applicationFile) 
    {
        this.applicationFile = applicationFile;
    }

    public String getApplicationFile() 
    {
        return applicationFile;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("subjectId", getSubjectId())
            .append("applicationFile", getApplicationFile())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
